package com.xoms.admin.service;

import com.xoms.admin.controller.res.bean.RProBreakageBean;
import com.xoms.admin.controller.res.bean.RProBreakageInfoBean;
import com.xoms.admin.model.AccountBean;
import com.xoms.admin.service.res.PageResult;

/**
 * 报损接口
 * @author chengl
 *
 */
public interface ProBreakageService {

	/**
	 * 获取报损列表
	 * @param account
	 * @param key
	 * @param page
	 * @param pageSize
	 * @param startTime
	 * @param endTime
	 * @param storeHouseId
	 * @return
	 */
	PageResult<RProBreakageBean> getBreakages(AccountBean account, int page, int pageSize, String startTime,
			String endTime, String storeId);
	
	/**
	 * 获取报损详情
	 * @param account
	 * @param page
	 * @param pageSize
	 * @param bid
	 * @param paging
	 * @return
	 */
	PageResult<RProBreakageInfoBean> getBreakageDetails(AccountBean account, int page, int pageSize, String bid,
			int paging);
	
	/**
	 * 编辑、新建报损详情
	 * @param account
	 * @param bid
	 * @param storeId
	 * @param remark
	 * @param details
	 * @param isSubmit
	 * @return
	 */
	RProBreakageBean edit(AccountBean account, String bid, String storeId, String remark, String details, int isSubmit);
	
	/**
	 * 删除报损单
	 * @param account
	 * @param bid
	 * @return
	 */
	boolean del(AccountBean account, String bid);
	
	/**
	 * 提交报损单信息
	 * @param account
	 * @param bid
	 * @return
	 */
	boolean submitPurchase(AccountBean account, String bid);

}
